home *** CD-ROM | disk | FTP | other *** search
- Path: news.lyseo.otol.fi!calvin!not-for-mail
- From: mjr@lyseo.otol.fi (Mikko Rauhala)
- Newsgroups: comp.lang.c,comp.unix.programmer,comp.os.linux.development.apps
- Subject: Re: HELP: I/O via LPT1:
- Followup-To: comp.lang.c,comp.unix.programmer,comp.os.linux.development.apps
- Date: 11 Mar 1996 21:39:49 GMT
- Organization: Oulun Lyseon Lukio
- Message-ID: <4i26j5$vg5@hobbes.lyseo.otol.fi>
- References: <Do2nMH.5A1@ecf.toronto.edu>
- NNTP-Posting-Host: calvin.lyseo.otol.fi
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- BREWSTER NEIL VINAY (brewste@ecf.toronto.edu) wrote:
- : Does anyone know the equivalent of inport() and outport()?
-
- inb and outb, and additionally you must get io permissions to the
- necessary port using ioperm or iopl. This is a dirty way to make it work,
- however. Also, getting io permissions requires the process to be run as
- root. If you only want to make it work somehow, this is the wasy way, if
- you want to make it work cleanly, you write a kernel driver ;)
-
- : Alternatively - is there a way to embed assembler code in a C program?
-
- This too is possible - see gcc info pages - but also requires io
- permissions, of course.
-
- - Mjr
-
- Mikko Rauhala
- mjr@lyseo.otol.fi
- http://www.lyseo.otol.fi/~mjr
- 'nuff said
-